//引入VueRouter
import VueRouter from 'vue-router'
//引入路由组件
import Home from '../views/Home'
import Login from '../views/Login'


//创建router实例对象，去管理一组一组的路由规则
const router = new VueRouter({
	routes:[
		{
			name:'home',
			path:'/',
			component:Home
		},
		{
			name:'login',
			path:'/toLogin',
			component:Login
		}
	]
})

//暴露router
export default router